<?php 
echo $this->form;


$ths = array('Inscrit le','Login','Profil(s)','Nom','Email','Statut','-Actions-');
$trs = array();


$users=array();
if(isset($this->users))
foreach($this->users as $user) {
	$deleteUrl =  '<a href="'.
				$this->url(array('module'=>'admin','controller'=>'system-regions','action'=>'delete-language','regionname'=>$region['name'])).'">'.
				$this->translate("delete").'</a>';
	$user['urlAction']='edite-delete';
	$date = new Zend_Date($user['date_created']);
	
	$user['date_created'] = $date;
	//$roles = explode(";",$user['roles']);
	$roles = str_ireplace(";",",<br/>",$user['role']);
	unset($user['id']);
	unset($user['date_updated']);
	unset($user['password']);
	unset($user['aclroles']);
	unset($user['picture']);
	unset($user['lang']);
	unset($user['country']);
	unset($user['region']);
	unset($user['sexe']);	
	$user['role'] = $roles;
	$user['lastname'] = "<b>".strtoupper($user['lastname'])."</b><br/>".$user['firstname'];
	unset($user['firstname']);
	$users[] = $user;
}


echo $this->wmpTableSorter($ths,$users,array('thwidths'=>array(null,null,null,null,10)));

?>